define(['app'], function(app) {
	'use strict';

	var controller = function controller($scope,$stateParams,$sce,Center_list,GoPage) {
		$scope.input = new Object();
		$scope.child_title = $stateParams.title;
		$scope.$on('$ionicView.beforeEnter', function() {
				$scope.init_data();
		}, false);
		$scope.init_data = function(){
			$scope.parent = $stateParams.parent;
			$scope.child = $stateParams.child;
			Center_list.get_data(function(data){
			$scope.data= data.cusphone[$scope.parent].cat_type[$scope.child].data;
		})
	}

	}

	controller.$inject = ['$scope','$stateParams','$sce','Center_list','GoPage'];
	
	return app.registerController("center_listctrl",controller);
});